﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Procenge.PortalVendas.Models.Compra>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	IndexCompra
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>IndexCompra</h2>

    <table>
        <tr>
            <th></th>
            <th>
                notaFiscal
            </th>
            <th>
                serieNotaFiscal
            </th>
            <th>
                cpfCliente
            </th>
            <th>
                cnpjDistribuidor
            </th>
            <th>
                formapg
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.notaFiscal }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.notaFiscal })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.notaFiscal })%>
            </td>
            <td>
                <%: item.notaFiscal %>
            </td>
            <td>
                <%: item.serieNotaFiscal %>
            </td>
            <td>
                <%: item.cpfCliente %>
            </td>
            <td>
                <%: item.cnpjDistribuidor %>
            </td>
            <td>
                <%: item.formapg %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

